package com.lin.manager.tool.entity.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lin.manager.tool.entity.GenColumn;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author linjiang
 * @date 2024/5/15
 * @fn
 */
@Data
public class TableDto {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("数据表名称")
    private String tableName;
    @ApiModelProperty("数据表注释")
    private String tableComment;
    @ApiModelProperty("数据库引擎")
    private String tableEngine;
    @ApiModelProperty("类名")
    private String className;
    @ApiModelProperty("作者")
    private String author;
    @ApiModelProperty("包路径")
    private String packageName;
    @ApiModelProperty("业务名称")
    private String bizName;
    @ApiModelProperty("模块名称")
    private String module;
    @ApiModelProperty("导出方式，1-压缩包，2-自定义")
    private Integer type;
    @ApiModelProperty("自定义路径")
    private String path;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty("系统业务表字段")
    List<GenColumn> genColumns;
}
